package com.fosu.config;

 import com.fosu.interceptor.PublishInterceptor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;


/**
 * @author zqa
 * @version 1.0
 * @date 2020/11/13 20:03
 */
@Configuration
public class WebConfiguration implements WebMvcConfigurer  {
    @Autowired
    PublishInterceptor publishInterceptor;
    @Override
    public void addInterceptors(InterceptorRegistry registry) {
        registry.addInterceptor(publishInterceptor).addPathPatterns("/release/releaseProduct");

    }
}
